<?php
class Profile extends AppModel {

	var $name = 'Profile';
	var $displayField = 'slug';
	var $actsAs = array(
		'MeioUpload' => array(
			'avetar' => array(
				'dir' => 'img{DS}{model}{DS}{field}',
				'create_directory' => true,
				'allowed_mime' => array('image/jpeg', 'image/pjpeg', 'image/png', 'image/gif'),
				'allowed_ext' => array('.jpg', '.jpeg', '.png', 'gif'),
				'thumbsizes' => array('normal'  => array('width'=>800, 'height'=>600))
			)
		)
	);
	//avetar
	//The Associations below have been created with all possible keys, those that are not needed can be removed
	
	var $belongsTo = array(
			'User' => array('className' => 'Authake.User',
								'foreignKey' => 'user_id',
								'conditions' => '',
								'fields' => '',
								'order' => ''
			)
	);

	/*var $hasOne = array(
			'User' => array('className' => 'Authake.User',
								'foreignKey' => 'profile_id',
								'dependent' => false,
								'conditions' => '',
								'fields' => '',
								'order' => ''
			)
	);*/
	

}
?>